import request from '@/utils/request'

// 查询诊断结果列表
export function listScan(query) {
  return request({
    url: '/diagnosis/scan/list',
    method: 'get',
    params: query
  })
}

// 查询诊断结果详细
export function getScan(id) {
  return request({
    url: '/diagnosis/scan/' + id,
    method: 'get'
  })
}

// 新增诊断结果
export function addScan(data) {
  return request({
    url: '/diagnosis/scan',
    method: 'post',
    data: data
  })
}

// 修改诊断结果
export function updateScan(data) {
  return request({
    url: '/diagnosis/scan',
    method: 'put',
    data: data
  })
}

// 删除诊断结果
export function delScan(id) {
  return request({
    url: '/diagnosis/scan/' + id,
    method: 'delete'
  })
}
